@echo off
mkdir %~dp0\export 2>nul
del /f /q %~dp0\export\*
call :docopy out\tyle.dll
call :docopy out\tyle.exe
call :docopy src\tyle.h
call %~dp0\export\tyle.exe "puts(tyleVersion)" > %temp%\md.txt
set /p x= < %temp%\md.txt
echo Version: %x%
rem sed -e "s/%%version%%/%x%/" %~dp0\resources\tyle.html > %~dp0\export\tyle.html
call :docopy resources\tyle.html
call :docopy resources\tyle.gif
call :docopy resources\screen.jpg
call :docopy tylecode\*.tyle
call :docopy resources\tyler.bat
call :docopy resources\tylerun.bat
call :docopy resources\template.bat
goto :eof
:docopy
copy %~dp0\%1 %~dp0\export
goto :eof
